package site.shihuan.helpdesk.security.model;

import site.shihuan.helpdesk.common.model.Constants;
import site.shihuan.helpdesk.common.model.IResultCode;

/**
 * TODO
 *
 * @author 周世焕
 * @Date 2021/1/27 22:04
 */
public enum  SecurityResultCode implements IResultCode {

    CLIENT_ID_NOT_EXISTS(Constants.CLIENT_ID_ERR,"ClientID 不存在") ,
    CLIENT_ID_WRONG(Constants.CLIENT_ID_ERR,"ClientID 解码错误");

    private int code;

    private String msg;

    SecurityResultCode() {

    }

    SecurityResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getCodeMsg() {
        return msg;
    }
}
